﻿<%@ Page Title="Title" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.List<GradeBook.Models.User>>" MasterPageFile="~/Views/Shared/Site.Master" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">
    Список группы
</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
    <table>
            <thead>
                <tr>
                    <th>
                        Id
                    </th>
                    <th>
                        ФИО
                    </th>
                    <th>
                        Операции
                    </th>
                </tr>
            </thead>
            <tbody>
                <% if (Model != null)
                    foreach (GradeBook.Models.User user in Model)
                    { %>
                <tr>
                    <td>
                        <%= Html.Encode(user.Id)%>
                    </td>
                    <td>
                        <%= Html.Encode(user.LastName + " " + user.FirstName + " " + user.Patronymic)%>
                    </td>
                    <td>
                        <%= Html.ActionLink("Отметить", "Group", "Tutor", new { groupId = user.Id }, null)%>
                    </td>
                </tr>
                <% } %>
            </tbody>
        </table>
</asp:Content>
